﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TaskManagementSystem.Middleware
{
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public class ScheduledTaskAttribute : Attribute
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        public string JobName { get; set; } = "";

        /// <summary>
        /// 任务类型
        /// </summary>
        public Enum.JobType JobType { get; set; } = Enum.JobType.Minutes;

        /// <summary>
        /// 任务间隔的时间
        /// </summary>		
        public int TimeSpan { get; set; } = 1;

        /// <summary>
        /// CronTrigger表达式
        /// </summary>		
        public string CronExpression { get; set; } = "";
    }
}
